package com.yhuk.oauth.server.model;


import java.util.Collections;

/**
 * @author xiaolang
 * @version 1.0.0
 */
public class MyUserDetails extends org.springframework.security.core.userdetails.User {
    private User user;

    public MyUserDetails(User user) {
        super(user.getUserName(), user.getPassword(), true, true, true, true, Collections.EMPTY_SET);
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
